home *** CD-ROM | disk | FTP | other *** search
- Garfield Benjamin (gbenjam@sosbbs.com) wrote:
-
- >>> Well, problem is this won't work.
-
- > > Yes it will. I tried it.
-
- > Very strange as I just tried it as well and AMOS gives an error
- > (missing End If) just as I suspected!! The only thing I can
- > assume is that you and Keith are using AMOS Pro which must
- > have changed things a bit. In AMOS v1.36 it will NOT work.
-
- Yup, you're right. It's AMOS Pro that allows it. Just ran Classic too
- and tried it. Error right away.
-
-
- >> The logic is the same too. Select..is just
- >> more advanced in that it offers some extra features.
-
- > The logic is NOT the same. Look at the above code again. This
- > will print "WOW, you're over 21!!" as long as AGE is greater than
- > 9 and unequal to 21...
-
- Ooops! You're completely right. But if we take another piece of code
- then, like this.
-
- If A=1
- print "Hello"
- else if a>1 and a<10
- print "A is now between 2 and 9"
- else
- print "A is 10 or higher"
- endif
-
- and the same code using select
-
- select A
-
- case 1
- print "Hello"
-
- case 2-9
- print "A is now between 2 and 9"
- case default
- print "A is 10 or higher"
- end case
-
- Not much of a difference. This is assuming one is using Pro, where the above
- syntax of if else if holds true. Here the logic is exactly the same. If clauses
- or select clauses is more often than not completely interchangeable. Sometimes
- select is far more efficient though.
-
- > > That would trigger the error-system. One if and three end-ifs is
- > > plain wrong.
-
- > Try it... it works fine.
-
- Just did. Pro claims it's endif without if. In classic it worked as it should.
- So we were both right.
-
- Didn't Europress claim that Pro was a 100% compatible to classic, beside the
- extensions? Well, it isn't apparently.
-
- > other, but the whole point of this thread was that it might be
- > nice to have support for SELECT...CASE in AMOS. :-)
-
- Nice it would be indeed, especially for those stuck with Classic it seems. But for
- me there are other things that should be higher up on the prioritylist. Hopefully
- whoever is upgrading it thinks the same (hopefully for me that is). Only reason
- that I don't know that is that I just recently resubbed here.
-
- Shall we put this debate to end now? It seems we're basically agreeing.
-
- ---
- Look at the shoes you're filling, look at the blood we're spilling
- Look at the world we're killing, the way we've always done before
- Look at the doubt we've wallowed, look at the leaders we've followed
- Look at the lies we've swallowed and I don't wanna hear no more
- ---
- Form an orderly queue behind the gunsight!
-
-
-